package org.jeecg.controller;

import org.jeecg.domain.dto.ResponseResult;
import org.jeecg.service.CityDirectoryService;
import org.jeecg.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/cityDirectory")
public class CityDirectoryController {
    @Autowired
    private CityService cityService;

//    城市列表

    @GetMapping("/cityList")
    public ResponseResult cityList(){
        return cityService.cityList();
    }
}
